#include "TestTvLayout.h"
#include <QString>
#include <QtGui>

TestTvLayout::TestTvLayout()
{
}

void TestTvLayout::testIndexToCoord(){
	layout.CW = false;
	layout.LedHeight = 4;
	layout.LedWidth = 5;
	layout.margins = 50;
	layout.startLed = QPoint(0,0);

	for(int i=0;i<14;i++)
	countCoord(i);
}

void TestTvLayout::countCoord(int index){
	QPoint pt = layout.indexToCoord(index);
	qDebug(QString("Index: %1. X = %2, Y = %3").arg(index).arg(pt.x()).arg(pt.y()).toAscii());
}
